import request from '@/utils/request'
import { faceApiUrl } from '../config'

/*
  技术服务需求
*/

/**
 * 分页查询
 * @param data
 */
 export function getPageTechnicalServiceNeeds(data){
    return request({
      url: `${faceApiUrl}/technicalServiceNeeds/getPageTechnicalServiceNeeds`,
      method: 'post',
      data
    })
  } 

/**
 * 删除
 * @param data
 */
 export function delTechnicalServiceNeeds(data){
     console.log(data)
    return request({
      url: `${faceApiUrl}/technicalServiceNeeds/deleteByPrimaryKey?id=${data.id}`,
      method: 'post',
    })
  } 



  /**
 * 获技术服务需求详情
 * @param data
 */
 export function getTechnicalServiceNeedsByIdDetail(data){
    return request({
      url: `${faceApiUrl}/technicalServiceNeeds/getTechnicalServiceNeedsById?id=${data.id}`,
      method: 'get',
      data
    })
  } 

/**
 * 技术服务需求顶部统计
 * @param data
 */
 export function getTopTotal(data){
    return request({
      url: `${faceApiUrl}/technicalServiceNeeds/getTopTotal`,
      method: 'post',
      data
    })
  } 

    /**
 * 添加技术服务需求
 * @param data
 */
 export function addInsertSelective(data){
    return request({
      url: `${faceApiUrl}/technicalServiceNeeds/insertSelective`,
      method: 'post',
      data
    })
  } 

 /**
 * 编辑技术服务需求
 * @param data
 */
 export function updateByPrimaryKeySelective(data){
    return request({
      url: `${faceApiUrl}/technicalServiceNeeds/updateByPrimaryKeySelective`,
      method: 'post',
      data
    })
  } 

    /**
 * 技术服务需求打印
 * @param data
 */
 export function technicalServiceNeedsPrint(data){
    return request({
      url: `${faceApiUrl}/technicalServiceNeeds/print?id=${data.id}`,
      method: 'get',
      data
    })
  } 
  
  
